<{include file="public/header.html"}>	
<div class="xinsu-right">
	<div class="xinsu-right-content">
		<div class="xinsu-data-content">
			<div class="xinsu-title">
				<span class="layui-breadcrumb">
					<a><cite>当前位置</cite></a>
					<a><cite>股票信息表</cite></a>
					<a><cite>新增股票信息表</cite></a>
				</span>
			</div>
			<form class="xinsu-form" action="" method="post">
			
				<table width="100%">
					<tbody>
								
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">类型:</td>
							<td>
								<select name="type">
									<option value="sz">深市</option>
									<option value="sh">沪市</option>
								</select>
						
							</td>		
						</tr>
					
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">股票代码：</td>
							<td>
								<input type="text" name="code" class="layui-input" maxlength ="6" value=""/>
							</td>
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">股票名称：</td>
							<td>
								<input type="text" name="name" class="layui-input" maxlength ="20" value=""/>
							</td>		
						</tr>
					
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">拼音缩写：</td>
							<td>
								<input type="text" name="pinyin" class="layui-input" maxlength ="10" value=""/>
							</td>		
						</tr>
				
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">开盘：</td>
							<td>
								<select name="open">
									<option value="1" >开盘</option>
									<option value="0" >关盘</option>
								</select>
							</td>		
						</tr>
				
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">最小成交额：</td>
							<td>
								<input type="text" name="min_num" class="layui-input" maxlength ="10" value=""/>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">停牌：</td>
							<td>
								<select name="stop_pai">
									<option value="0" >无停</option>
									<option value="1" >停牌</option>
								</select>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">停牌日期：</td>
							<td>
								<input type="text" name="stop_date" id="stop_date" lay-verify="date" placeholder="" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value=""/>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">可买：</td>
							<td>
								<select name="can_bull">
									<option value="1">可买</option>
									<option value="0">禁买</option>
								</select>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">可卖：</td>
							<td>
								<select name="can_sell">
									<option value="1" >可卖</option>
									<option value="0">禁卖</option>
								</select>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">可买升：</td>
							<td>
								<select name="can_bull_up">
									<option value="1">可买升</option>
									<option value="0">禁买升</option>
								</select>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">可买跌：</td>
							<td>
								<select name="can_bull_down">
									<option value="1">可买跌</option>
									<option value="0">禁买跌</option>
								</select>
							</td>		
						</tr>
				
						<tr class="xinsu-row-ls">
							<td class="xinshu-asterisk" align="right" width="200">板块：</td>
							<td>
								<table border="0" cellspacing="0" cellpadding="0" >
									<tr>
										<td rowspan="4" align="center" valign="top">
											<select name="bklist_left" size="8" multiple id="bklist_left" style="width:320px;height:250px;">
												<{foreach $bklist as $key to $val}>
												<option value="<{$val.bk_name}>"><{$val.class}> > <{$val.bk_name}></option>
												<{/foreach}>
											</select>
										</td>
										<td>
											<br/><br/>
											&nbsp;<input name="btnAddAll" class="layui-btn" type="button" id="btnAddAll" value="&gt;&gt;" class="btn1" title="添加全部" />&nbsp;<br/><br/>
											&nbsp;<input name="btnAdd"  class="layui-btn" type="button" id="btnAdd" value="&nbsp;&gt;&nbsp;" class="btn1" title="添加选中" />&nbsp;<br/><br/>
											&nbsp;<input name="btnRemoveAll"  class="layui-btn" type="button" id="btnRemoveAll" value="&lt;&lt;" class="btn1" title="移除全部" />&nbsp;<br/><br/>
											&nbsp;<input name="btnRemove"  class="layui-btn" type="button" id="btnRemove" value="&nbsp;&lt;&nbsp;" class="btn1" title="移除选中" />&nbsp;<br/><br/>
										</td>
										<td rowspan="4" align="center" valign="top">
											<select name="bklist_right" size="8" multiple id="bklist_right" style="width:320px;height:250px;">
											</select>
										</td>
									</tr>
								</table>
							</td>		
						</tr>
						<tr class="xinsu-row-ls">
							<td  width="200"></td>
							<td align="center">
								<button class="layui-btn xinsu-btn xinsu-btn1" type="submit">确定</button>
								<button class="layui-btn xinsu-btn xinsu-btn2" type="reset">重置</button>
								<input name="bklist_hidden" type="hidden" id="bklist_hidden" value="">
							</td>
						</tr>
					</tbody>
				</table>
				
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
			$('#btnAddAll').click(function(){
					//清除右侧
					$('#bklist_right option').remove();
					$('#bklist_hidden').val('');
					$('#bklist_left').find('option').each(function(){
							$('#bklist_right').append('<option value="'+$(this).val()+'">' + $(this).val() + '</option>');
							$('#bklist_hidden').val($('#bklist_hidden').val() + ',' + $(this).val());
						});
				});
			$('#btnAdd').click(function(){
					$('#bklist_left').find('option:selected').each(function(){
							if($('#bklist_right option[value="' + $(this).val() + '"]').val()==undefined)
							{
								$('#bklist_right').append('<option value="'+$(this).val()+'">' + $(this).val() + '</option>');
								$('#bklist_hidden').val($('#bklist_hidden').val() + ',' + $(this).val());
							}
						});
				});
			$('#btnRemoveAll').click(function(){
					//清除右侧
					$('#bklist_right option').remove();
					$('#bklist_hidden').val('');
				});
			$('#btnRemove').click(function(){
					$('#bklist_right').find('option:selected').each(function(){
							$(this).remove();
							$('#bklist_hidden').val($('#bklist_hidden').val().replace(','+$(this).val(),''));
						});
				});
			
		});
</script>

<{include file="public/footer.html"}>